package dataContainers;

import java.sql.Timestamp;

public class Match {
	private Team homeTeam;
	private Team awayTeam;
	private Timestamp kickOffTime;
	
	private Match(Team homeTeam, Team awayTeam, Timestamp time){
		this.homeTeam = homeTeam;
		this.awayTeam = awayTeam;
		this.kickOffTime = kickOffTime;
	}
	
	public static Match createNewMatch(Team homeTeam, Team awayTeam, Timestamp time){
		return new Match(homeTeam,awayTeam,time);
	}
	
	public Team getHomeTeam() {
		return homeTeam;
	}
	public Team getAwayTeam() {
		return awayTeam;
	}
	public Timestamp getKickOffTime() {
		return kickOffTime;
	}
	
	public Stadium getStadium() {
		return homeTeam.getStadium();		
	}
	
	
	
	
	
}
